package cn.yunhe.service.impl;

import cn.yunhe.dao.CountDao;
import cn.yunhe.dao.InsurCateDao;
import cn.yunhe.entity.Insurcate;
import cn.yunhe.service.CountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author 刘宜展
 * @date 2018/9/17 10:39
 */

@Service("countService")
public class CountServiceImpl implements CountService {

    @Resource
    private CountDao countDao;

    public CountDao getCountDao() {
        return countDao;
    }

    public void setCountDao(CountDao countDao) {
        this.countDao = countDao;
    }

    @Override
    public List<Insurcate> findLikeInsurCates(Map<String, Object> cond) {
        return countDao.findAllInsurCates(cond);
    }

    @Override
    public List<Insurcate> findInsurcatesByManyId(List<String> list) {

        return countDao.findInsurcatesByManyId(list);
    }
}
